package com.tarena.lbs.content.dao.mapper;

import com.tarena.lbs.content.pojo.po.ArticleSearchPO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

@Mapper
public interface ArticleMapper {

    // 示例：按分类ID查询并分页
    Page<ArticleSearchPO> findByArticleCategoryId(Integer categoryId, Pageable pageable);

    // 示例：按标题关键词模糊查询（依赖分词器）
    Page<ArticleSearchPO> findByArticleTitleContaining(String keyword, Pageable pageable);
}
